import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';

import '../utils/utils.dart';
import '../values/values.dart';

Widget inputSearchWithCalender() {
  return Container(
    height: 44.w,
    padding: EdgeInsets.only(left: 16.w),
    margin: EdgeInsets.only(top: 44.h), // 顶部系统栏 44px
    child: Row(
      children: [
        Container(
          width: 290.w,
          height: 36.h,
          padding: EdgeInsets.symmetric(horizontal: 12.w),
          decoration: BoxDecoration(
            color: AppColors.borderColor,
            borderRadius: 12.radius,
          ),
          child: Row(
            children: [
              Image.asset(
                "assets/images/search_ic_search2.webp",
                width: 14.w,
                height: 14.w,
              ),
              7.vGap,
              Text(
                "搜索".tr,
                style: TextStyle(
                  color: AppColors.secondaryText,
                  fontSize: 16.sp,
                ),
              )
            ],
          ),
        ),
        Expanded(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              Container(
                child: Row(
                  mainAxisAlignment: MainAxisAlignment.center,
                  crossAxisAlignment: CrossAxisAlignment.end,
                  children: [
                    Text(
                      "10",
                      style: TextStyle(
                        color: AppColors.primaryText,
                        fontSize: 9.sp,
                        height: 1,
                        fontFamily: "Akrobat",
                        fontWeight: FontWeight.w600,
                      ),
                    ),
                    Text(
                      "/",
                      style: TextStyle(
                        color: AppColors.primaryText,
                        fontSize: 9.sp,
                        height: 1,
                        fontFamily: "Akrobat",
                        fontWeight: FontWeight.w600,
                      ),
                    ),
                    Text(
                      "12",
                      style: TextStyle(
                        color: AppColors.primaryText,
                        fontSize: 24.sp,
                        height: 1,
                        fontFamily: "Akrobat",
                        fontWeight: FontWeight.w600,
                      ),
                    ),
                  ],
                ),
              ),
              Text(
                "发售日历".tr,
                style: TextStyle(
                  color: AppColors.primaryText,
                  fontSize: 9.sp,
                ),
              ),
            ],
          ),
        ),
      ],
    ),
  );
}
